package shiyan6;

public class YiXinZhi01 extends Thread {

    private static final int ITERATIONS = 10;
    private static final long SLEEP_MILLIS = 50L;

    @Override
    public void run() {
        for (int i = 0; i < ITERATIONS; i++) {
            System.out.println("我是易信志");
            try {
                Thread.sleep(SLEEP_MILLIS);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                System.err.println("YiXinZhi01 线程被中断：" + e.getMessage());
                break;
            }
        }
    }
}
